
public class variableno {
	
	public static double add(double... number)
	{
		double sum=0;
		for(int i=0; i < number.length; i++) {
			
		sum=sum+number[i];
		}
		return sum;
	}
	
	
	public static void main(String[] args)
	{
		int isum = (int) variableno.add(1,2,3);
		System.out.println("add of integers is : " +isum);
		
	}
}